import { getAction, deleteAction, putAction, postAction, downFilePost } from '@/api/manage'

const serviceName = '/incident-server'
/*-----------重点人-----------*/
//重点人管理分页列表查询
const wxFocusPersonList = (params) => getAction(`${serviceName}/focusPerson/wxFocusPerson/list`, params)
//重点人详情
const wxFocusPersonQueryById = (params) => getAction(`${serviceName}/focusPerson/wxFocusPerson/queryById`, params)
//编辑重点人
const wxFocusPersonEdit = (params) => postAction(`${serviceName}/focusPerson/wxFocusPerson/edit`, params)
//移除重点人
const wxFocusPersonDelete = (params) => postAction(`${serviceName}/focusPerson/wxFocusPerson/delete`, params)
//重点人-案事件编号集合
const getIncidentCodeList1 = (params) => getAction(`${serviceName}/focusPerson/wxFocusPerson/getIncidentCodeList`, params)
//重点人-任务编号集合
const getTaskCodeList = (params) => getAction(`${serviceName}/focusPerson/wxFocusPerson/getTaskCodeList`, params)
//重点人-号码归属地集合
const getPhoneAreaList = (params) => getAction(`${serviceName}/focusPerson/wxFocusPerson/getPhoneAreaList`, params)
//重点人导出
const focusPersonExportXls = (params) => downFilePost(`${serviceName}/focusPerson/wxFocusPerson/focusPersonExportXls`, params)
/*-----------负样本人员-----------*/
//负样本人员分页列表查询
const wxSamplePersonList = (params) => getAction(`${serviceName}/person/wxSamplePerson/list`, params)
//负样本-关联案事件集合
const getIncidentCodeList2 = (params) => getAction(`${serviceName}/person/wxSamplePerson/getIncidentCodeList`, params)
//负样本编辑
const wxSamplePersonEdit = (params) => putAction(`${serviceName}/person/wxSamplePerson/edit`, params)
//负样本人员导出
const samplePersonExportXls = (params) => downFilePost(`${serviceName}/person/wxSamplePerson/samplePersonExportXls`, params)
//移除-恢复
const wxSamplePersonStatus = (params) => postAction(`${serviceName}/person/wxSamplePerson/updateStatus`, params)
/*-----------种子号码管理-----------*/
//种子号码管理-分页列表查询
const wxSeedPersonList = (params) => getAction(`${serviceName}/seedPerson/wxSeedPerson/list`, params)
//修改分组
const wxSeedPersonEdit = (params) => postAction(`${serviceName}/seedPerson/wxSeedPerson/edit`, params)
/*-----------群组标签-----------*/
//获取标签以及子标签的数据（树形数据）
const labelTree = (params) => getAction(`${serviceName}/label/wxLabel/labelTree`, params)
//新建下级（一级）群组
const labelTreeAdd = (params) => postAction(`${serviceName}/label/wxLabel/add`, params)
//修改群组名称
const labelTreeEdit = (params) => putAction(`${serviceName}/label/wxLabel/edit`, params)
//删除群组
const labelTreeDelete = (params) => deleteAction(`${serviceName}/label/wxLabel/delete`, params)

export {
  wxFocusPersonList,
  wxFocusPersonQueryById,
  wxFocusPersonEdit,
  wxFocusPersonDelete,
  getIncidentCodeList1,
  getTaskCodeList,
  getPhoneAreaList,
  focusPersonExportXls,

  wxSamplePersonList,
  getIncidentCodeList2,
  wxSamplePersonEdit,
  samplePersonExportXls,
  wxSamplePersonStatus,

  wxSeedPersonList,
  wxSeedPersonEdit,

  labelTree,
  labelTreeAdd,
  labelTreeEdit,
  labelTreeDelete
}
